var head={
	title:{css:{width:"100%"}},
	create_date:{css:{width:"15%"}},
	file_size:{css:{width:"15%"}},
	fen_shu:{css:{width:"15%"},bindFunc:"bindFenshu"},
	ji_fen:{css:{width:"15%"}},
	name:{css:{width:"20%"}},
	content:{css:{width:"100%"}},
	ctrl:{css:{width:"20%"},bindFunc:"fileCtrl"}
};
tableHandle.addFunc("bindFenshu",function(key){
	var val=this[key];
	var c="red";
	if(val>=80){
		c="rgb(14, 156, 42)";
	}
	else if(val>=60){
		c="rgb(241, 141, 14)";
	}
	return "<span style='color:"+c+"'>"+val/10.0+"分</span>";
});
tableHandle.addFunc("fileCtrl",function(key){
	return "<button class='btn' callFunc='click:{{item.id}}Handle.view'>查看评论</button><button  callFunc='click:{{item.id}}Handle.download' class='btn'>下载</button>";
});
var template="<div class='table_template'>" +
				"<div class='tr'>" +
					"<div class='td title' jtext='title'></div>" +
				"</div>" +
				"<div class='tr'>" +
					"<div class='td gray' jtext='content'></div>" +
				"</div>" +
				"<div class='tr normal'>" +
					"<div class='td' jtext='name'></div>" +
					"<div class='td' jtext='create_date'></div>" +
					"<div class='td' jtext='file_size'></div>" +
					"<div class='td' jtext='fen_shu'></div>" +
					"<div class='td money' jtext='ji_fen'></div>" +
					"<div class='td' jtext='ctrl'></div>" +
				"</div>" +
			"</div>";

var sort=[{id:"a.fen_shu",name:"评分排行"},
          {id:"a.ji_fen",name:"所需积分"}];

var param={
	sort:sort,
	head:head,
	temp:template
};
